from onu.models import *


class OltView(models.Model):
    olt_id = models.IntegerField(blank=True, null=True)
    olt_name = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    olt_system_name = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    olt_ip = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    olt_port = models.IntegerField(blank=True, null=True)
    olt_account = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    olt_passwd = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    up_port = models.CharField(max_length=50, db_collation='utf8_general_ci', blank=True, null=True)
    host_status = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    up_down_remind = models.CharField(max_length=50, db_collation='utf8_general_ci', blank=True, null=True)
    run_status = models.IntegerField(blank=True, null=True)
    remind_group = models.CharField(max_length=50, db_collation='utf8_general_ci', blank=True, null=True)
    save_hours = models.IntegerField(blank=True, null=True)
    save_mode = models.CharField(max_length=50, db_collation='utf8_general_ci', blank=True, null=True)
    abnormal_group = models.CharField(max_length=50, db_collation='utf8_general_ci', blank=True, null=True)
    olt_mode = models.CharField(max_length=20, db_collation='utf8_general_ci', blank=True, null=True)
    line_template_gpon = models.IntegerField(blank=True, null=True)  
    business_template_gpon = models.IntegerField(blank=True, null=True)  
    line_template_epon = models.IntegerField(blank=True, null=True)  
    business_template_epon = models.IntegerField(blank=True, null=True)
    business_intimal = models.IntegerField(blank=True, null=True)
    business_outer = models.CharField(max_length=100, blank=True, null=True)
    gemport = models.IntegerField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'olt_view'